package com.hl.client.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {
    @Value("${server.port}")
    String port;
    @RequestMapping("/hello/{name}")
    public String index(@PathVariable String name){
        System.out.println("port:"+port);
        return "hello:+"+port+"=="+name+"这是client提供的服务";
    }
}
